package com.cqq.attachment.dao.impl;
import java.io.Serializable;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import com.cqq.attachment.dao.domain.Attachment;
import com.cqq.attachment.dao.mapper.AttachmentMapper;
import com.cqq.common.core.base.BaseQuery;


/**
 * @author CHENQQ
 * @date 2015-12-03
 */
@Repository(value="attachmentDao")
public class AttachmentDaoImpl extends com.cqq.common.core.base.BaseDao implements com.cqq.attachment.dao.AttachmentDao{

             @Autowired
             private AttachmentMapper attachmentMapper;

			
			public int deleteByPrimaryKey(Integer id) {
				return attachmentMapper.deleteByPrimaryKey(id);
			}

			
			public int insert(Attachment record) {
				return attachmentMapper.insert(record);
			}

			
			public int insertSelective(Attachment record) {
				attachmentMapper.insertSelective(record);
				return record.getId();
			}


			
			public Attachment selectByPrimaryKey(Integer id) {
				return attachmentMapper.selectByPrimaryKey(id);
			}

			
			public int updateByPrimaryKeySelective(Attachment record) {
				return attachmentMapper.updateByPrimaryKeySelective(record);
			}

			
			public List<Attachment> queryAttachmentsByIds(String ids) {
				return attachmentMapper.queryAttachmentsByIds(ids);
			}
			
			
			public void add(Attachment obj) {
				// TODO Auto-generated method stub
				
			}

			
			public Integer delete(Serializable id) {
				// TODO Auto-generated method stub
				return null;
			}

			
			public Integer update(Attachment obj) {
				// TODO Auto-generated method stub
				return null;
			}

			
			public Attachment queryById(Serializable id) {
				// TODO Auto-generated method stub
				return null;
			}

			
			public List<Attachment> queryAll() {
				// TODO Auto-generated method stub
				return null;
			}

			
			public List<Attachment> queryPage(BaseQuery query) {
				// TODO Auto-generated method stub
				return null;
			}

			
			public Integer queryCount(BaseQuery query) {
				// TODO Auto-generated method stub
				return null;
			}


}